package at.fhj.itm10.ticketmaster.entities;
/**
 * 
 * @author Gerald Hambrosch
 *
 */
public class EventType implements Entity {

	private long id;
	private String text;
	public long getId() {
		return id;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (int) (id ^ (id >>> 32));
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		EventType other = (EventType) obj;
		if (id != other.id)
			return false;
		return true;
	}
	
	@Override
	public String toString() {
		return "EventType [id=" + id + ", text=" + text + "]";
	}

	public void setId(long id) {
		this.id = id;
		
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}
	
	public EventType(int id, String text) {
		this.id = id;
		this.text = text;
	}

	public EventType() {
		// TODO Auto-generated constructor stub
	}
}
